package com.jokins.admin.ios.user.service.impl;

import com.jokins.admin.ios.user.actioncontext.BookUserChangePasswordDoc;
import com.jokins.admin.ios.user.actioncontext.BookUserUserLoginDoc;
import com.jokins.admin.ios.user.param.BookUserChangePasswordParam;
import com.jokins.admin.ios.user.param.BookUserRegisterPasswordParam;
import com.jokins.admin.ios.user.param.BookUserUserLoginParam;
import com.jokins.admin.ios.user.service.BookUserService;
import com.jokins.admin.ios.user.vo.BookUserUserLoginVo;
import com.jokins.common.actions.action.ActionContext;
import com.jokins.common.actions.util.ActionDispatcher;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 〈〉<br>
 *
 * @author Mr.Wang
 * @create 2025/2/4
 */
@Service
public class BookUserServiceImpl implements BookUserService {


    @Override
    public BookUserUserLoginVo BookUserUserLogin(BookUserUserLoginParam param) {
        BookUserUserLoginDoc doc=new BookUserUserLoginDoc(param);
        ActionDispatcher.execute(doc);
       return (BookUserUserLoginVo) doc.getResultValue(ActionContext.RESULT_DOC_KEY);
    }

    @Override
    public void BookUserChangePassword(BookUserChangePasswordParam param) {
        BookUserChangePasswordDoc doc=new BookUserChangePasswordDoc(param);
        ActionDispatcher.execute(doc);
    }

    @Override
    public Map<String, String> BookUserRegisterPassword(BookUserRegisterPasswordParam param) {
        return null;
    }

    @Override
    public String BookUserRePassword(String id) {
        return null;
    }
}